package com.mall.product.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.product.entity.AttrEntity;
import com.mall.product.vo.AttrGroupRelationVo;
import com.mall.product.vo.AttrRespVo;
import com.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author rose
 * @email zichuanhaoyue@gmail.com
 * @date 2021-05-16 19:04:35
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);


    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    void save(AttrVo attr);

    PageUtils queryPageByCondition(Map<String, Object> params, Long catelogId, String attrType);

    void updateById(AttrVo attr);

    List<AttrEntity> getAttrRelation(Long attrgroup);

    void deleteRelation(AttrGroupRelationVo[] attrGroupRelationVo);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrgroup);

}

